package com.example.studentmanagement.mapper;

import com.example.studentmanagement.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {

    User findById(Integer id);

    User findByUsername(String username);

    List<User> findAll();

    void insert(User user);

    void update(User user);

    void deleteById(Integer id);

    User selectByUserName(String username);
}
